January 04, 2025
v3 Get Whatsapp Senders
Description:
Returns a list of whatsapp senders in the account.
URI:
https://api.multitel.net/v3/wa_senders
Methods:
GET
Sample Output:
{
"status": {
"code": 200,
"msg": ""
},
"response": [
{
"id": "wasid.397fd18366e8a219beadce7cf6687007",
"phone_number": "33172813320",
"phone_number_id": "529955226878643",
"status": "deleted",
"date": "2024-12-18 17:00:23"
},
{
"id": "2ff97d7a0c22efecb566236825212",
"phone_number": "14503180118",
"phone_number_id": "478857458650205",
"status": "active",
"date": "2024-12-04 02:16:42"
},
]
}
Sample Code:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.multitel.net/v3/wa_senders',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Accept: application/json',
'Authorization: Basic YWRtaW46Vnc0OXBYNk',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;